function fntOpenDialogCargando() {

    $("#dialog-cargando").dialog({
        resizable: false,
        modal: true,
        closeOnEscape: false,
        open: function(event, ui) {
            objImg = $("#img-cargando");
            objDialog = $("#dialog-cargando");
            intDialogWidth = objImg.outerWidth(false);
            intDialogHeight = objImg.outerHeight(false);
            $(".ui-dialog-titlebar").hide();
            if( $.browser.msie ) {
                objDialog.dialog( "option", "width", intDialogWidth );
                objDialog.dialog( "option", "height", intDialogHeight );
            }
            else {
                intDialogHeight += 15;
                objDialog.dialog( "option", "width", intDialogWidth );
                objDialog.dialog( "option", "height", intDialogHeight );
            }

        },
        close: function(event, ui) {
            $(this).dialog("destroy");
        }

    });

}
function fntCloseDialogCargando() {
    $("#dialog-cargando").dialog( "close" );
}